@tool
extends EditorInspectorPlugin

const TagTreeEditor = preload("res://addons/gameplay-ability-system/Scripts/Inspector/Tag/tag_tree_editor.gd")

func _can_handle(object: Object) -> bool:
	return object is TagTree


func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
	
	if name == "tree":
		add_custom_control(TagTreeEditor.new())
		return true
	
	return false
